﻿using System.Web.Http;
using Gozib.Data;
using Gozib.Data.Contracts;
using Ninject;
using Ninject.Web.Mvc;

namespace Gozib.Web.App_Start
{
  public class IocConfig
  {
    public static void RegisterIoc(HttpConfiguration config)
    {
      var kernel = new StandardKernel();

      kernel.Bind<IUoW>().To<UoW>();

      config.DependencyResolver = new NinjectDependencyResolver(kernel);
    }
  }
}